package com.atguigu.spring.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Demo03FruitController {

    @RequestMapping("/fruit")
    public String fruit() {
        return "fruit";
    }

    @RequestMapping("/fruit/apple")
    public String fruitApple() {
        return "fruit/apple";
    }

    @RequestMapping("/fruit/apple/sweet")
    public String fruitAppleSweet() {
        return "fruit/apple/sweet";
    }

}
